

import cache from './cache'
import modal from './modal'
import cookieShare from './cookieShare'

export default function installPlugins(app) {
 // 缓存对象
 app.config.globalProperties.$cache = cache
 // 模态框对象
 app.config.globalProperties.$modal = modal
 // 共享cookie
 app.config.globalProperties.$cookieShare = cookieShare

  Array.prototype.showColumn = function (column) {
    var item = this.find((x) => x.prop == column)
    // console.log('showColumn方法', this, column, item)
    if (item) {
      return item.visible
    }
    return true
  }
}
